package com.gy.def.viewobject;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import java.util.List;

@Data
@ApiModel(value = "页数数据")
public class PageMap<T> {

    @ApiModelProperty(value = "数据集合")
    private List<T> resultList;

    @ApiModelProperty(value = "总页数")
    private Integer totalPages;

    @ApiModelProperty(value = "总记录数")
    private Long totalElements;

    @ApiModelProperty(value = "当前页码")
    private Integer number;

    @ApiModelProperty(value = "每页显示数量")
    private Integer size;
}
